package top.yifengxiner.blockchain.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.yifengxiner.blockchain.mapper.CourseMapper;
import top.yifengxiner.blockchain.pojo.entity.Course;
import top.yifengxiner.blockchain.pojo.vo.IdVo;
import top.yifengxiner.blockchain.service.CourseService;

import java.util.List;

/**
 * @author ：baixiao
 * @date ：Created in 2021/5/12 19:14
 * @description：课程服务
 * @modified By：
 * @version: 0.0.1$
 */
@Service
public class CourseServiceImpl implements CourseService
{

    @Autowired
    private CourseMapper courseMapper;

    @Override
    public List<Course> getCourse(IdVo idVo)
    {
        QueryWrapper<Course> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("academic_id",idVo.getId());
        return courseMapper.selectList(queryWrapper);
    }


}
